<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>02-load()方法</title>
</head>
<body>
    <button>按钮</button>
    <script src="./js/jquery-1.12.4.js"></script>
    <script>
      $(function(){
        $('button').click(function(){
            $('button').load('data/server.txt',function(){
                console.log("异步请求成功...")
            })
        })
      })
    </script>
</body>
</html>